package cn.zhou;

import java.util.Scanner;

public class test13 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入小明左手中的纸牌:");
        int left = sc.nextInt(); //左手
        System.out.print("请输入小明右手中的纸牌:");
        int right = sc.nextInt(); //右手
        System.out.println("交换前小明手中的纸牌:");
        System.out.println("左手的纸牌:"+left);
        System.out.println("右手的纸牌:"+right);
        int temp=left;
        left=right;
        right=temp;
        System.out.println("交换后小明手中的纸牌:");
        System.out.println("左手的纸牌:"+left);
        System.out.println("右手的纸牌:"+right);
    }
}
